<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>


<h2><spring:message code="label.nameCarcervice"/>:&nbsp;
    "<c:out value='${carserviceName}'/>"</h2>
<br>

<spring:message code="label.editTurn" />
<form:form method="post"
           action="${pageContext.request.contextPath}/carservicePage/turn/save"
           commandName="turn">
    <table>
        <tr>
            <td><spring:message code="label.sectionTurn" />
            </td>
            <td>
                <form:select path="idSectionTurn.id" cssClass="inputTurn">
                    <form:options items="${sectionList}" itemValue="id" itemLabel="name" />
                </form:select>
            </td>
        </tr>
        <br>
        <tr>
            <td><spring:message code="label.nameTurn" />
            </td>
            <td><form:input path="name"  cssClass="inputTurn"/>
            </td>
            <td><span class="error"><form:errors path="name" />
                </span>
            </td>
        </tr>

        <tr>
            <td><spring:message code="label.description"/>
            </td>
            <td><form:textarea path="description"  cssClass="inputTurn" height="700"/>
            </td>
            <td><span class="error"><form:errors path="description" />
                </span>
            </td>
        </tr>
        <tr>
            <td colspan="2"><input type="submit"
                                   value="<spring:message code="label.submit"/>" /></td>
        </tr>
    </table>
</form:form>
